package site.wanjiahao.handler.client;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import site.wanjiahao.message.response.JoinGroupResponseMessage;

@ChannelHandler.Sharable
public class JoinGroupResponseMessageHandler extends SimpleChannelInboundHandler<JoinGroupResponseMessage> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, JoinGroupResponseMessage msg) throws Exception {
        System.out.println(msg.getReason());
    }
}
